import request from '@/utils/request'

/**
 * 计算 列表
 * @param prams
 */
export function mortgageListApi(params) {
  return request({
    url: '/admin/mortgage/list',
    method: 'get',
    params
  })
}

/**
 * 类型 列表
 * @param prams
 */
 export function mortgageStatusApi(params) {
  return request({
    url: '/admin/mortgage/status/num',
    method: 'get',
    params
  })
}

/**
 * 修改
 * @param prams
 */
 export function mortgageUpdateApi(params) {
  return request({
    url: '/admin/mortgage/update',
    method: 'post',
    params
  })
}

/**
 * 删除
 * @param prams
 */
 export function mortgageDeleteApi(params) {
  return request({
    url: '/admin/mortgage/delete/'+ params.id,
    method: 'post',
    params
  })
}